import java.io.Serializable;

public class Date implements Serializable {
    int year;
    int month;
    int day;

    public Date() {
        this(1, 1);
    }

    public Date(int month, int day) {
        this(month, day, 1900);
    }

    public Date(int month, int day, int year) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public int getDay() {
        return this.day;
    }

    public int getMonth() {
        return this.month;
    }

    public int getYear() {
        return this.year;
    }

    @Override
    public String toString() {
        return this.year + "-" + this.month + "-" + this.day;
    }
}
